package com.example.springboot.mapper;

import com.example.springboot.entity.Admin;
import com.example.springboot.entity.CarouselImage;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface CarouselImageMapper {

    List<CarouselImage> findActiveImages();


    List<CarouselImage> findAll();


    CarouselImage findById(Integer carouselId);

    void insert(CarouselImage carouselImage);


    void update(CarouselImage carouselImage);


    void delete(Integer carouselId);
    Admin findByUsername(String username);
}